<template>
  <a-layout id="components-layout-demo-custom-trigger" style="min-height: 100vh">
    <Sider v-model:collapsed="collapsed" />
    <a-layout>
      <Header v-model:collapsed="collapsed" />
      <a-layout-content
        :style="{ margin: '24px 16px', padding: '24px', background: '#fff', minHeight: '280px' }"
      >
        <router-view></router-view>
      </a-layout-content>
    </a-layout>
  </a-layout>
</template>
<script lang="ts" setup>
import { ref } from 'vue';

import Header from '@/components/Header.vue';
import Sider from '@/components/Sider.vue';

const collapsed = ref<boolean>(false);
</script>
<style>
#components-layout-demo-custom-trigger .trigger {
  font-size: 18px;
  line-height: 64px;
  padding: 0 24px;
  cursor: pointer;
  transition: color 0.3s;
}

#components-layout-demo-custom-trigger .trigger:hover {
  color: #1890ff;
}

#components-layout-demo-custom-trigger .logoTit {
  height: 32px;
  margin: 16px;
  color: #fff;
  text-align: center;
  font-weight: bold;
}

.site-layout .site-layout-background {
  background: #fff;
}
</style>
